/*
 * @Author: QiuZongXi 897956138@qq.com
 * @Date: 2022-04-29 10:48:49
 * @LastEditors: QiuZongXi 897956138@qq.com
 * @LastEditTime: 2022-09-03 16:45:57
 * @FilePath: \vue2_cli\src\api\materialSettlement\public.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

//物资结算 公用接口
import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
const request = {
    //获取当前机构的本位币
    getbwb (params) {
        return httpGet({
            url: '/config/cy/getBaseCyByOrgId',
            params
        })
    },
    //获取当前机构下的本位币汇率
    gethuilv (params) {
        return httpGet({
            url: '/config/cy/getRmbRate',
            params
        })
    },
    //获取按钮状态
    getCurrentUnitInfo (params) {
        return httpPost({
            url: '/materialsettle/flowEngin/getCurrentUnitInfo',
            params
        })
    },
    //获取审核历史
    getauditHistory (params) {
        return httpPost({
            url: '/materialsettle/flowEngin/getAuditHistory',
            params
        })
    },
    //提交审核
    commitexamine (params) {
        return httpPost({
            url: '/materialsettle/flowEngin/commit',
            params
        })
    },
    //撤销单步审核
    goBack (params) {
        return httpPost({
            url: '/materialsettle/flowEngin/undoAudit',
            params
        })
    },
    //作废
    zuofei (params) {
        return httpPost({
            url: '/materialsettle/common/nullify',
            params
        })
    },
    //审核
    goaudit (params) {
        return httpPost({
            url: '/materialsettle/flowEngin/audit',
            params
        })
    },
    chonghongdan2 (params) {
        return httpGet({
            url: '/turnoversettle/allocationSettlement/initRed',
            params
        })
    }

}

export default request